<script setup>
import { onMounted } from 'vue'
import { RouterView } from 'vue-router'
import { provideVersion } from './utils/index'
import Header from './views/global/Header.vue'
import { useTimeStore } from './stores/counter'
const { setYear } = useTimeStore()

provideVersion()

onMounted(() => {
  setYear(new Date().getFullYear())
})
</script>

<template>
  <div class="container">
    <Header />
    <router-view />
  </div>
</template>
